package com.example.threaddemo.ThreadDemo05;

import java.util.concurrent.ArrayBlockingQueue;

public class ThreadDemo05 {


    public static void main(String[] args) {

        //阻塞队列
        ArrayBlockingQueue<String> queue = new ArrayBlockingQueue<>(1);

        Cook c =new Cook(queue);
        Foodie f =new Foodie(queue);

        c.start();
        f.start();


    }


}
